const express =require('express');
const bodyParser = require('body-parser');
const app = express();
app.use(bodyParser.urlencoded({ extended: false }));
app.use(express.static('public'));
app.get('/', (req, res) => {
    res.end('首页');
})
app.post('/login', (req, res) => {
    console.log(req.body.username, req.body.password);
    res.send(req.body);
})
app.listen(80, () => {
    console.log('服务启动：http://127.0.0.1');
})